const router = require('express').Router()

const { testList, testStatus, testreset, testinfo} = require('../middleware/person')

const {testLogin}=require('../middleware/users')

const { list, status, reset, del, info,update ,register} = require('../controllers/person')

router.get('/list', testList, list)

router.patch('/status', testStatus, status)

router.patch('/reset', testreset, reset)

router.delete('/del', testreset, del)

router.get('/info/:user_id', testinfo, info)

router.post('/update', testinfo, update)

router.post('/register', testLogin, register)
module.exports = router